home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / ColorSync SDK / Sample Code / CSDemo 2.1 / ShellSources / gxPrintUtils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-13  |  1.8 KB  |  70 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef _GXPRINTING_
  3. #define _GXPRINTING_
  4.  
  5.  
  6. #ifndef __EVENTS__
  7. #include <Events.h>
  8. #endif
  9.  
  10. #ifndef __GXTYPES__
  11. #include <GXTypes.h>
  12. #endif
  13.  
  14. #ifndef __GXPRINTING__
  15. #include <GXPrinting.h>
  16. #endif
  17.  
  18.  
  19. /**\
  20. |**| ==============================================================================
  21. |**| PUBLIC DEFINES
  22. |**| ==============================================================================
  23. \**/
  24. #define r_printJobType    'JOB '
  25.  
  26.  
  27. /**\
  28. |**| ==============================================================================
  29. |**| PUBLIC TYPEDEFS
  30. |**| ==============================================================================
  31. \**/
  32. typedef struct GXPrintLoopParams
  33. {
  34.     gxJob            theJob ;
  35.     WindowRef        window ;        // the window to print from
  36.     GrafPtr            printingPort ;    // the dprot to print into
  37.     long            firstPage ;
  38.     long            lastPage ;
  39.     long            currentPage ;
  40.     gxViewPort        printViewPort ;
  41.     
  42. } GXPrintLoopParamsRec, *GXPrintLoopParamsPtr, **GXPrintLoopParamsHdl ;
  43.  
  44.  
  45. /**\
  46. |**| ==============================================================================
  47. |**| PUBLIC FUNCTION PROTOTYPES
  48. |**| ==============================================================================
  49. \**/
  50. OSErr        GXPrinting_present        ( void ) ;
  51. OSErr        GXPrinting_available    ( void ) ;
  52. OSErr        GXPrinting_initialize    ( void ) ;
  53. void        DisposeGXPrinting        ( void ) ;
  54.  
  55. OSErr        GetDefaultGXJob            ( gxJob *theJob ) ;
  56. OSErr        LoadResourceGXJob        ( gxJob *theJob, FSSpec *spec ) ;
  57. OSErr        SaveResourceGXJob        ( gxJob theJob, FSSpec *spec ) ;
  58.  
  59. OSErr        GXGetPageSize            ( gxJob theJob, Rect *pageRect ) ;
  60.  
  61. OSErr         GXStyleDlog                ( gxJob    theJob ) ;
  62. OSErr         GXJobDlog                ( gxJob    theJob ) ;
  63.  
  64. OSErr        GXPrintLoopBegin        ( GXPrintLoopParamsPtr params ) ;
  65. OSErr        GXPrintLoopPageBefore    ( GXPrintLoopParamsPtr params ) ;
  66. OSErr        GXPrintLoopPageAfter    ( GXPrintLoopParamsPtr params ) ;
  67. OSErr        GXPrintLoopEnd            ( GXPrintLoopParamsPtr params ) ;
  68.  
  69.  
  70. #endif